package org.example;

// 词法单元
public class Token {

    public int type;
    public String name;
    public String text;

    public Token(int type, String name, String text) {
        this.type = type;
        this.text = text;
        this.name = name;
    }

    @Override
    public String toString() {
        return "<'" + text + "'," + name + ">";
    }
}
